package com.airnews.ticket.net.type;

import java.io.Serializable;

public class RequestInsuranceInfo   implements  Serializable{
	private static final long serialVersionUID = 2837642512497329766L;
	private String insuranceType;//保险类型	HYX 航意险
	private String insurancePrice;//保险单价费用
	private String copies;//保险份数
	private String insuranceAmount;//保险花费	InsurancePrice*Copies
	/**
	 * @return the insuranceType
	 */
	public String getInsuranceType() {
		return insuranceType;
	}
	/**
	 * @param insuranceType the insuranceType to set
	 */
	public void setInsuranceType(String insuranceType) {
		this.insuranceType = insuranceType;
	}
	/**
	 * @return the insurancePrice
	 */
	public String getInsurancePrice() {
		return insurancePrice;
	}
	/**
	 * @param insurancePrice the insurancePrice to set
	 */
	public void setInsurancePrice(String insurancePrice) {
		this.insurancePrice = insurancePrice;
	}
	/**
	 * @return the copies
	 */
	public String getCopies() {
		return copies;
	}
	/**
	 * @param copies the copies to set
	 */
	public void setCopies(String copies) {
		this.copies = copies;
	}
	/**
	 * @return the insuranceAmount
	 */
	public String getInsuranceAmount() {
		return insuranceAmount;
	}
	/**
	 * @param insuranceAmount the insuranceAmount to set
	 */
	public void setInsuranceAmount(String insuranceAmount) {
		this.insuranceAmount = insuranceAmount;
	}
	
	public String getRequestData() {
		StringBuffer sb = new StringBuffer();
		sb.append("<asoc:InsuranceInfo>")
			  .append("<asoc:InsuranceType>").append(this.insuranceType == null ? "HYX" : this.insuranceType).append("</asoc:InsuranceType>")
			  .append("<asoc:InsurancePrice>").append(this.insurancePrice == null ? "" : this.insurancePrice).append("</asoc:InsurancePrice>")
			  .append("<asoc:Copies>").append(this.copies == null ? "" : this.copies).append("</asoc:Copies>")
			  .append("<asoc:InsuranceAmount>").append(this.insuranceAmount == null ? "" : this.insuranceAmount).append("</asoc:InsuranceAmount>")
			  .append("<asoc:Status>0</asoc:Status>");
		sb.append("</asoc:InsuranceInfo>");

		return sb.toString();
	}
}
